/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exercises.day01.pt2;

/**
 * MyFirstJava
 *
 * @author (jaice)
 * @version 0.1 (may 28, 2012)
 * 
 *b. Create a loop that prints two variables – one increments by one starting from 
 *zero and another decrements from 10 by 2.
 *
 * 
 */
public class IncrementDecrement {

    public static void main(String args[]) {

        System.out.println("\n\n");


        for (int x = 0; x <= 10; x++) {

        //prints increment
            System.out.print(x + "\t");
            //prints decrement
            System.out.print(10 - (x * 2));

            System.out.println();

        }

    }
}
